import os from os import environ # Define BASE_DIR - the root directory of your project BASE_DIR = os.path.dirname(os.path.abspath(__file__)) # ── Oath texts per treatment ────────────────────────────────────────────────── # T1: No oath (control). T2-T5: four different oath texts. # Set oath_text=None (or omit it) for the no-oath control treatment. OATH_TEXTS = { 'T1': None, 'T2': "I swear that I will do my best", 'T3': "I swear that I will do my best to serve the well-being of the group members", 'T4': "I swear that I will do my best. So help me God", 'T5': "I swear that I will do my best to serve the well-being of the group members. So help me God", } SESSION_CONFIGS = [ dict( name='leader', display_name="Leader (First Mover)", app_sequence=['oathexp'], num_demo_participants=10, ios_type='original', ), dict( name='follower', display_name="Follower (Second Mover)", app_sequence=['oath_follower'], num_demo_participants=10, ios_type='original', ), ] SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=1.00, participation_fee=0.00, doc="" ) PARTICIPANT_FIELDS = [] SESSION_FIELDS = ['treatment_index'] # ISO-639 code LANGUAGE_CODE = 'en' REAL_WORLD_CURRENCY_CODE = 'GBP' USE_POINTS = True # Show-up fee paid to all participants upon completion (in GBP) SHOWUP_FEE = 1.00 ROOMS = [ dict( name='econ101', display_name='Econ 101 class', participant_label_file='_rooms/econ101.txt', ), dict(name='live_demo', display_name='Room for live demo (no participant labels)'), ] # NOTE: Do NOT include a DATABASES setting when deploying to oTree Hub. # oTree Hub manages the database automatically. # The block below is for local development only — remove or comment it out before deploying. DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } ADMIN_USERNAME = 'admin' ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD', '') DEMO_PAGE_INTRO_HTML = """ Here are some oTree games. """ SECRET_KEY = environ.get('OTREE_SECRET_KEY', '6745581068771') INSTALLED_APPS = ['otree']